﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Control="clr-namespace:HAOest.DianDi.UI.Control" x:Class="HAOest.DianDi.UI.MainWindow"
        Title="点滴记事" Height="481" Width="808" WindowStartupLocation="CenterScreen" Icon="logo.ico">
    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="Resources/background_01.jpg" Stretch="UniformToFill"/>
        </Grid.Background>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="305"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="95"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="85"/>
            <RowDefinition/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Control:NoteListControl x:Name="noteListControl" Margin="20,10" Grid.Row="1" Grid.ColumnSpan="3"/>
        <StackPanel Margin="20,0,0,0" Grid.Row="2" Orientation="Horizontal">
            <TextBlock HorizontalAlignment="Left" Margin="0,0,5,0" VerticalAlignment="Center"><Hyperlink x:Name="CheckUpdate" Style="{DynamicResource HyperlinkStyle}" ToolTip="检查是否有更新的版本" Click="CheckUpdate_Click"><Run Text="检查更新"/></Hyperlink></TextBlock>
            <TextBlock x:Name="LbVersion" Text="当前版本：" Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" />
        </StackPanel>
        <StackPanel Grid.Column="1" Margin="0,0,20,0" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Grid.ColumnSpan="2" Width="206">
            <TextBlock HorizontalAlignment="Left"  Margin="5,0" VerticalAlignment="Center"><Hyperlink NavigateUri="http://listmanager.haoest.com" ToolTip="查看产品网站，获取最新信息" Style="{DynamicResource HyperlinkStyle}" Click="ProjectHome_Click"><Run Text="产品首页"/></Hyperlink></TextBlock>
            <TextBlock Margin="5,0,0,0"  VerticalAlignment="Center" HorizontalAlignment="Left"><Hyperlink NavigateUri="http://www.haoest.com" ToolTip="查看好易思特主页" Style="{DynamicResource HyperlinkStyle}" Click="CompanyHome_Click"><Run Text="© 2013 好易思特 HAOest"/></Hyperlink></TextBlock>
        </StackPanel>
        <Button x:Name="AddNoteButton" Content="添加" Style="{DynamicResource GreenButtonStyle}" Grid.Column="2" Margin="10,25,20,25" Height="35" Width="Auto" VerticalAlignment="Center" Click="AddNoteButton_Click" />
        <Image HorizontalAlignment="Left" Margin="20,14,0,13" Source="Resources/text.png" VerticalAlignment="Center" Width="195" Height="58"/>
    </Grid>
</Window>
